import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { ProductCate } from 'src/app/model/proudctCate';

@Component({
  selector: 'app-product-cate-updater',
  templateUrl: './product-cate-updater.component.html',
  styleUrls: ['./product-cate-updater.component.less']
})
export class ProductCateUpdaterComponent implements OnInit {

  category: ProductCate;
  constructor(
    private route: ActivatedRoute,
  ) { }

  ngOnInit(): void {
    this.route.data.subscribe(
      (data: {brand: ProductCate}) => {
        this.category = data['cate'];
      }
    )
  }

}
